home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-30 | 1.9 KB | 71 lines | [TEXT/KAHL] |
- /**********************************************************************\
-
- File: program globals.h
-
- Purpose: This is the header file for all the Voyeur globals.
-
-
- Voyeur -- a no-frills file viewer
- Copyright ©1993-4, Mark Pilgrim
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program in a file named "GNU General Public License".
- If not, write to the Free Software Foundation, 675 Mass Ave,
- Cambridge, MA 02139, USA.
-
- \**********************************************************************/
-
- enum
- {
- allsWell = 0,
- diskReadErr,
- typeCreatorWriteErr,
- offsetTooLargeErr,
- invalidHexErr,
- diskFullErr,
- badTypeCreatorErr,
- tooManyFilesErr,
- hexNotFoundErr,
- asciiNotFoundErr,
- userCancelErr
- };
-
- enum
- {
- findDialog=200,
- offsetDialog,
- eofDialog,
- typeCreatorDialog,
- findHexDialog
- };
-
- #define CREATOR 'Voyr'
- #define APPLICATION_NAME "\pVoyeur"
- #define MAX_WINDOWS 10
-
- extern unsigned char hexchar[2][256];
- extern unsigned char asciichar[256];
- extern FSSpec gTheFS[MAX_WINDOWS];
- extern int gTheRefNum[MAX_WINDOWS];
- extern int gBufferOffset[MAX_WINDOWS];
- extern unsigned long gTheOffset[MAX_WINDOWS][2];
- extern unsigned char gTheBuffer[MAX_WINDOWS][256];
- extern unsigned long gForkLength[MAX_WINDOWS][2];
- extern int gWhichFork[MAX_WINDOWS];
- extern Str255 gFindString;
- extern Str255 gFindHexString;
- extern Str255 gFindHexStringInAscii;
- extern Boolean gFindHex;
- extern int gWhichFile;
- extern int gLastFile;
-